package com.aat.dizena.test.app;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.aat.dizena.test.service.TestService;

public class StartProvider {
	
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx=new ClassPathXmlApplicationContext("dubboProvider.xml");
		ctx.start();
		TestService service=ctx.getBean(TestService.class);
		String s = service.say("123");
		System.out.println(s);
		try {
			System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
		}
		ctx.close();
	}
}
